package net.sk.china.platform.service.product;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import net.sk.china.common.model.product.StoreProductReply;
import net.sk.china.platform.request.product.StoreProductReplyAddRequest;
import net.sk.china.platform.request.product.StoreProductReplyCommentRequest;
import net.sk.china.platform.request.product.StoreProductReplySearchRequest;
import net.sk.china.platform.response.product.StoreProductReplyResponse;
import net.sk.china.common.request.PageParamRequest;

/**
 * StoreProductReplyService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/4 11:32
 * +----------------------------------------------------------------------
 */
public interface StoreProductReplyService extends IService<StoreProductReply> {

    /**
     * 商品评论列表
     * @param request 请求参数
     * @param pageParamRequest 分页参数
     * @return {@code PageInfo<StoreProductReplyResponse>}
     */
    PageInfo<StoreProductReplyResponse> getList(StoreProductReplySearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 添加虚拟评论
     * @param request 评论参数
     * @return {@code boolean}
     */
    boolean virtualCreate(StoreProductReplyAddRequest request);

    /**
     * 查询是否已经回复
     * @param unique skuId
     * @param orderId 订单id
     * @return {@code Boolean}
     */
    Boolean isReply(String unique, Integer orderId);

    /**
     * 删除评论
     * @param id 评论id
     * @return {@code Boolean}
     */
    Boolean delete(Integer id);

    /**
     * 商品评论回复
     * @param request 回复参数
     * @return {@code Boolean}
     */
    Boolean comment(StoreProductReplyCommentRequest request);
}
